#include "ioc.h"


int ioc() {
    IocContainer ioc;
    ioc.registerType<ICar, Bus>("bus");
    ioc.registerType<ICar, Car>("car");

    auto bus = ioc.resolveShared<ICar>("bus");
    auto car = ioc.resolveShared<ICar>("car");

    bus->func();
    car->func();

    return 0;
}